

//TODO a(47)
function a47(module, exports, a) {
    var i = a(23), s = a(3), r = (a(2), a(21)), n = function (e, t) {
        this.tplType = e, this.dom = t, this.sendLogTime = 0, this.sendLogCount = 0, this.hasSend = !1
    };
    s.extend(n, i);
    var o = {
        init: function () {
            this.coreVideo = {
                getCurrentTime: s.bind(function () {
                    return this.manager.coreVideo.getCurrentTime()
                }, this), getBuffered: s.bind(function () {
                    return this.manager.coreVideo.getBuffered()
                }, this)
            }, this.playerData = this.manager.playerData, this.initChildren(), this.manager.evt.trigger(r.EVENT.RESIZE), this.manager.evt.on("vjs_setPoster", function (e) {
                this.initPoster(e.args[0])
            }, this), this.dom.cont.on("touchstart", function (e) {
                if (!this.hasSend) {
                    var t = (new Date).getTime();
                    t - this.sendLogTime <= 500 && e.touches && 3 == e.touches.length ? ++this.sendLogCount >= 6 && (this.hasSend = !0, this.manager.log.send({
                            forceSend: !0,
                            phone: "hack send"
                        }), this.sendLogCount = 0) : this.sendLogCount = 0, this.sendLogTime = t
                }
            }, this)
        }, initChildren: function () {
            throw"need defined the function of Component.initChildren"
        }, initPoster: function (e) {
            if (e) {
                var t = this.dom.parentEl.find(".hv_play_poster")[0];
                t.style.backgroundImage = "url(" + e + ")", t.style.display = "block"
            }
        }, togglePlayer: function (e) {
            this.dom.parentEl[0].style.display = e ? "block" : "none"
        }
    };
    s.merge(n.prototype, o), module.exports = n
}
